Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code migration texas #102

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Code migration texas #102

wants to merge 6 commits into from

Conversation

trevorspreadbury
Copy link
Contributor

No description provided.



class ExpenseForm(Form):
def __init__(self, column_mapper=None):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would need different 'read_table' for some states. To deal with this, you can make state specific subclasses. This class should be considered the most common/standard Expense form.

Make sure you add a docstring to the class that describes that

pass

def map_columns(self) -> None:
"""Map and filter columns of the DataFrame"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a bit more explanation to this

self.table = None

@abc.abstractmethod
def read_table(self, paths: list[str]) -> pd.DataFrame:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

google style docstring, describe 'paths'

def __init__(self, column_mapper=None):
required_columns = [
"DONOR_ID",
"RECIPIENT",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RECIPIENT_ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants